$(document).ready(function () {
	$(".buttonKarma").click(function() { 
		var  id = this.id;
		$.ajax({
			type: "GET",
			url:  "index.php",
			data: ("&controller=karma&id="+id+"increase=1"),
			success:  function(data) {$('#karma_div'+id).text(data);alert(data);},
		});
	});
});

function ajaxQuery(id) {      
	$.ajax({
		type: "GET",
		url:  "index.php",
		data: ("&controller=karma&id="+id+"&check=1"),
		success:  function(data) {$('#karma_div'+id).text(data);},
	});
}
